# PQClient CMakeLists
# Author(s): xuming.Wong <xuming.Wong@gmail.com>

#-----------------------------------------------------------------------------
# DO NOT allow in-source builds.

if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR "CMake generation for PQClient is not allowed within the source directory! 
Remove the CMakeCache.txt file and try again from another folder, e.g.: 
	rm CMakeCache.txt 
	cd ..
	mkdir CMake_Out
	cd CMake_Out
	cmake ../Code
")
endif(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})

cmake_minimum_required(VERSION 2.6)
project(QSThink)

# Specify build paths
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)


# Include necessary submodules,Load macros.
# ---------------------------------------------------------
set(CMAKE_MODULE_PATH 
    ${CMAKE_SOURCE_DIR}/CMake
    )

include(BuildMacros)

# client
add_subdirectory(Client)
